package com.woniu.zsd.recycle.mapper;

import com.woniu.zsd.recycle.dto.UserSelectPriceDto;
import com.woniu.zsd.recycle.dto.WastePricingBySiteIdDto;
import com.woniu.zsd.recycle.model.WastePricing;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 彭于晏
 * @since 2025年02月18日
 */
@Mapper
public interface WastePricingMapper extends BaseMapper<WastePricing> {

    List<WastePricingBySiteIdDto> selectStationPriceBySiteId(Integer siteId);

    List<WastePricingBySiteIdDto> selectPriceByTypeId(String typeName);

    List<UserSelectPriceDto> userSelectPrice();

    @Select("SELECT DISTINCT site_id FROM waste_pricing")
    List<Integer> selectStationIds();
}
